 <!DOCTYPE html>
<html style="background-color: #F8F8F8;">

    <head>
        <meta charset="utf-8" />
        <meta name="viewport"
            content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
        <title>维修看板</title> 
        <link rel="stylesheet" type="text/css" href="{{asset('admin/css/bootstrap.min.css')}}" />
        <link rel="stylesheet" type="text/css" href="{{asset('user/css/baoxiu.css')}}"/>
        <link rel="stylesheet" type="text/css" href="{{asset('user/css/reset.css')}}"/>
        <link rel="stylesheet" type="text/css" href="{{asset('user/css/jingli.css')}}" />
        <script src="{{asset('user/js/jquery-3.2.1.min.js')}}"></script>
        <script src="{{asset('user/js/lib-flex.js')}}" type="text/javascript" charset="utf-8"></script>
    </head>
    <style type="text/css">
        h4{font-size: 16px;}
        .item-title{font-size: 15px;}
        .item-body{font-size: 14px;}
        .code{font-size: 14px;}

    </style>
<body>

    

 <!--搜索框-->
  <!-- 头部标题 start -->
        <header class="header">
            <div class="sousuo">
                <img src="{{asset('user/img/sousuo.png')}}" class="submit" />
                <input type="text" placeholder="搜索你想知道的" value="{{array_get($param,'keyword')}}" class="submit" id="keyword" />
            </div>
        </header>
        <!-- 头部标题 end -->

         @if(array_get($rs,'status')=='danger')
    <div class="alert alert-{{$rs['status']}}">
    {{ $rs['msg'] }}
    </div>
    @else
        
       

<div class="tab-nav" style="line-height: 20px; height: 20px;margin-bottom: 10px;">
           
        </div>

   
    @foreach($list as $v)
    <div class="content">
            <div class="title">
                <h4>{{$v->name}}</h4>
                
                <div class="code">编号：{{$v->source_code}}</div>
                
            </div>
            <div class="content-line"></div>
            
            <div class="content-item">
                <div class="item-title">
                    车型 
                </div>
                <div class="item-body">
                    {{object_get($v,'cate.name')}}
                </div>
            </div>
            
            
            <div class="content-item">
                <div class="item-title">
                    库存数
                </div>
                <div class="item-body">
                   {{$v->store_num}}
                </div>
            </div>


            <div class="content-item">
                    
                <a href="{{url('user/depart/info?id='.$v->id)}}" class="btn btn-info btn-sm">出库</a>
            </div>
            
          
            
           

            </div>
        <!-- 报修内容end -->
   
    @endforeach
</table>
<!--end 列表-->
</div>
<!--分页-->
<div class="row"> 
    <div class="col-md-12" style="text-align: center"> 
{{ $list->appends($param)->links() }}
</div>
</div>
<!--end分页-->

@endif
@include('4s.footer')
</body>
</html>

<script src="{{asset('user/js/jingli.js')}}"></script>
        <script type="text/javascript">
            
            $('.submit').bind('keypress',function(event){
              var _url = 'http://car.qdss.com.cn/user/depart?keyword=';
              var _keyword = $('#keyword').val();

              if(event.keyCode == "13")
              {
                window.location.href=_url+_keyword;
              }
            });
        </script>